<?php

namespace frontend\facade;

use Yii;
use frontend\service\IUserService;

/**
 * Class UserFacade
 * @package frontend\facade
 *
 * @method IUserService findAll($offset, $limit)
 * @method IUserService findOne($id)
 */
class UserFacade
{
    public static function __callStatic(string $name, array $arguments)
    {
        /** @var IUserService $service */
        $service = Yii::$container->get(IUserService::class);
        return call_user_func_array([$service, $name], $arguments);
    }
}